#if !GENERATOR

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Collections.Generic;

using YF.OneNote;


namespace YF.OneNote.DataTypes
{
  public partial class Image
  {
    public Image()
    {
      
	}

    
  
    protected override bool UpdateContents(NotesNode newContent, List<INotesChange> changes)
    {
	  Image item = (Image)newContent;
      bool changed = false;

      
      if (backgroundImage != item.backgroundImage)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = backgroundImageField;
        propertyChange.NewValue = item.backgroundImageField;
        propertyChange.PropertyName = "backgroundImage";
        changes.Add(propertyChange);

		
        backgroundImageField = item.backgroundImageField;
      }

      if (format != item.format)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = formatField;
        propertyChange.NewValue = item.formatField;
        propertyChange.PropertyName = "format";
        changes.Add(propertyChange);

		
        formatField = item.formatField;
      }

      if (isPrintOut != item.isPrintOut)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = isPrintOutField;
        propertyChange.NewValue = item.isPrintOutField;
        propertyChange.PropertyName = "isPrintOut";
        changes.Add(propertyChange);

		
        isPrintOutField = item.isPrintOutField;
      }

      if (mdiFileIndex != item.mdiFileIndex)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = mdiFileIndexField;
        propertyChange.NewValue = item.mdiFileIndexField;
        propertyChange.PropertyName = "mdiFileIndex";
        changes.Add(propertyChange);

		
        mdiFileIndexField = item.mdiFileIndexField;
      }

      if (mdiPageNumber != item.mdiPageNumber)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = mdiPageNumberField;
        propertyChange.NewValue = item.mdiPageNumberField;
        propertyChange.PropertyName = "mdiPageNumber";
        changes.Add(propertyChange);

		
        mdiPageNumberField = item.mdiPageNumberField;
      }

      if (originalPageNumber != item.originalPageNumber)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = originalPageNumberField;
        propertyChange.NewValue = item.originalPageNumberField;
        propertyChange.PropertyName = "originalPageNumber";
        changes.Add(propertyChange);

		
        originalPageNumberField = item.originalPageNumberField;
      }


      return changed;
    }
  }
}

#endif